# -*- coding: utf-8 -*-
# @Time    : 2021/11/11 20:09
# @Author  : super


def login(func):
	def inner(*args, **kwargs):
		print("请先登录！")
		func(*args, **kwargs)
	return inner

@login
def student(**kwargs):
	if kwargs["username"] == "jack" and kwargs["password"] == 123456:
		print("加载学生信息！")
	else:
		print("登录失败")

@login
def student1(*args):
	if args[0] == "jack" and args[1] == 123456:
		print("加载学生信息！")
	else:
		print("登录失败")

student(**{"username":"jack","password":123456})
student1(*("jack", 123456))